<?php
	/**
	 +=========================================================
	 * 零度空间 ZD cms 网站管理系统
	 * config.php 项目配置文件
	 +=========================================================
	 * @copyright © 2012 nickdraw.com All rights reserved.
	 * @author NickDraw(零度温柔) webmaster@206c.net
	 * @license http://www.nickdraw.com/license
	 +=========================================================
	 */
	
	if (!defined("APP_NAME")) exit();
	
    $config 	= require ("./configs/config.inc.php");
    $mysql 		= require ("./configs/mysql.inc.php");
	$settings	= require ("./configs/settings.inc.php");
	
    $array  = array(
        'URL_DISPATCH_ON'    =>1,
	    'URL_MODEL'          =>0,
	    'AUTO_BUILD_HTML'    =>0,
		'USER_AUTH_ON'       =>true,
		'USER_AUTH_TYPE'	 =>1,                       // 默认认证类型 1 登录认证 2 实时认证
	    'RBAC_ROLE_TABLE'    =>'think_role',
	    'RBAC_USER_TABLE'    =>'think_role_user',
	    'RBAC_ACCESS_TABLE'  =>'think_access',
	    'RBAC_NODE_TABLE'    =>'think_node',
		'USER_AUTH_KEY'		 =>'authId',                // 用户认证SESSION标记
	    'ADMIN_AUTH_KEY'	 =>'administrator',
		'USER_AUTH_MODEL'	 =>'User',                  // 默认验证数据表模型
		'AUTH_PWD_ENCODER'	 =>'md5',                   // 用户认证密码加密方式
		'USER_AUTH_GATEWAY'	 =>'public/login',	// 默认认证网关
		'NOT_AUTH_MODULE'	 =>'Public',                // 默认无需认证模块
		'REQUIRE_AUTH_MODULE'=>'',                      // 默认需要认证模块
		'NOT_AUTH_ACTION'	 =>'',                      // 默认无需认证操作
		'REQUIRE_AUTH_ACTION'=>'',                      // 默认需要认证操作
	    'GUEST_AUTH_ON'      =>false,                  // 是否开启游客授权访问
	    'GUEST_AUTH_ID'      =>0,                       // 游客的用户ID
	    'LIKE_MATCH_FIELDS'  =>'title|remark',
	    'TAG_NESTED_LEVEL'   =>3,
	    'UPLOAD_FILE_RULE'	 =>'uniqid',                //  文件上传命名规则 例如 time uniqid com_create_guid 等 支持自定义函数 仅适用于内置的UploadFile类
	    'ADMIN_TITLE' 		 => "Zero Dimension Space Control Center", //后台标题
        'FOOTER_COPY' 		 => "Powered By NDesign ".SYSTEM_VERSION_FT." © 2003 - ".date('Y')." NickDraw.com. Design & Develop By <a href='http://www.nickdraw.com' target='_blank'>NickDraw</a>", //后台页脚版权信息
        
    		
    		//模板路径规则
    		'TMPL_PARSE_STRING'			=> array(
    				'__PUBLIC__'	=> __ROOT__.'/'.$settings['WEB_PUBLIC_PATH'],						//
    				'__JS__'		=> __ROOT__.'/'.$settings['WEB_PUBLIC_PATH'].'/js',					//网站公用脚本目录
    				'__UPLOAD__'	=> __ROOT__.'/'.$settings['WEB_PUBLIC_PATH'].'/'.$settings['DIR_UPLOAD_PATH'],				//附件路径
    				'__THEMES__'	=> __ROOT__.'/'.$settings['WEB_PUBLIC_PATH'].'/themes/'.APP_NAME.'/'.$settings['DEFAULT_THEME'],	//主题默认路径
    				'__RESIZE__'	=> __ROOT__.'/'.$settings['WEB_PUBLIC_PATH'].'/'.$settings['DIR_RESIZE_PATH'],
    				'__PMINI__'		=> __ROOT__.'/'.$settings['WEB_PUBLIC_PATH'].'/'.$settings['DIR_MINI_PATH'],
    				'__PTHUMB__'	=> __ROOT__.'/'.$settings['WEB_PUBLIC_PATH'].'/'.$settings['DIR_THUMB_PATH'],
    				'__ATTACH__'	=> __ROOT__.'/'.$settings['WEB_PUBLIC_PATH'].'/'.$settings['DIR_ATTCH_PATH'],
    		)
    );
	
    return array_merge( $config, $settings, $array, $mysql );
?>